{include file="header.html"}
<script type="text/javascript">
//<!CDATA[
$(function(){
    // multi-select mall_gcategory
    $('#gcategory').length>0 && gcategoryInit("gcategory");
});
//]]>
</script>
<div class="mrightTop1 info">
  <div class="fontl">
    <form method="get">
      <input type="hidden" name="app" value="promotion" />
      {$lang.goods_name}:
      <input class="queryInput" type="text" name="goods_name" value="{$smarty.get.goods_name|escape}" />
      {$lang.store_name}:
      <input class="queryInput" type="text" name="store_name" value="{$smarty.get.store_name|escape}" />
      {$lang.pro_name}:
      <input class="queryInput" type="text" name="pro_name" value="{$smarty.get.pro_name|escape}" />
      <span style="position: relative; top: 5px;">
          <input type="submit" class="formbtn" value="{$lang.query}" />
      <!--{if $smarty.get.pro_name or $query.goods_name or $query.store_name}-->
      <a class="formbtn1" href="index.php?app=promotion">{$lang.cancel_query}</a>
      <!--{/if}-->
      </span>
    </form>
  </div>
  <div class="fontr">{include file=page.top.html}</div>
</div>
<div class="tdare">
  <table width="100%" cellspacing="0" class="dataTable">
    <!--{if $promotion_list}-->
    <tr class="tatr1">
      <td width="10%" class="firstCell"><input type="checkbox" class="checkall" /></td>
      <td width="30%"><span ectype="order_by" fieldname="goods_name">{$lang.goods_name}</span></td>
      <td width="30%"><span ectype="order_by" fieldname="goods_name">{$lang.pro_name}</span></td>
      <td width="10%"><span ectype="order_by" fieldname="store_name">{$lang.store_name}</span></td>
      <td width="10%"><span ectype="order_by" fieldname="start_time">{$lang.start_time}</span></td>
      <td class="table-center"><span ectype="order_by" fieldname="pro_recommended">{$lang.pro_recommended}</span></td>
      <td>{$lang.handler}</td>
    </tr>
    <!--{/if}-->
    <!--{foreach from=$promotion_list item=goods}-->
    <tr class="tatr2">
      <td class="firstCell"><input type="checkbox" class="checkitem" value="{$goods.pro_id}"/></td>
      <td>{$goods.goods_name|escape}</td>
      <td><span ectype="inline_edit" fieldname="pro_name" fieldid="{$goods.pro_id}" required="1" class="editable" title="{$lang.editable}">{$goods.pro_name|escape}</span></td>
      <td>{$goods.store_name|escape}</td>
      <td>{$goods.start_time|date}</td>
      <td class="table-center"><!--{if $goods.pro_recommended}--><img src="templates/style/images/positive_enabled.gif" ectype="inline_edit" fieldname="pro_recommended" fieldid="{$goods.pro_id}" fieldvalue="1" title="{$lang.editable}"/><!--{else}--><img src="templates/style/images/positive_disabled.gif" ectype="inline_edit" fieldname="pro_recommended" fieldid="{$goods.pro_id}" fieldvalue="0" title="{$lang.editable}"/><!--{/if}--></td>
      <td><a target="_blank" href="{$site_url}/index.php?app=goods&amp;id={$goods.goods_id}">{$lang.view}</a></td>
    </tr>
    <!--{foreachelse}-->
    <tr class="no_data info">
      <td colspan="8">{$lang.no_data}</td>
    </tr>
    <!--{/foreach}-->
  </table>
  <!--{if $promotion_list}-->
  <div id="dataFuncs">
    <div id="batchAction" class="left paddingT15">
      <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=promotion&act=drop&ret_page={$page_info.curr_page}" presubmit="confirm('{$lang.drop_confirm}')" />
    </div>
    <div class="pageLinks">{include file=page.bottom.html}</div>
   <!--{/if}-->
  </div>
  <div class="clear"></div>
</div>
{include file="footer.html"}